<div class="user-r-title clearfix">
    <div class="common-title f-l">
        <a href='{url r="user#promoter_list"}' {if $act eq 'promoter_list'}class="field"{/if}>推广商列表</a>
        <a href='{url r="user#promoter_checklist"}' {if $act eq 'promoter_checklist'}class="field"{/if}>审核推广商列表</a>
    </div>
    <a href='{url r="user#create_promoter"}' class="btn btn-primary btn-m f-r" id="btn_upload" style="position: relative; z-index: 1;">新增推广商</a>
</div>
<div class="user-r-content clearfix j-ajax-page">
    <div class="search clearfix" ms-important="vm-search">
        <div class="search-list">
            <span>推广商名称</span>
            <input type="text" name="promoter_name" ms-duplex="@search_data.promoter_name" placeholder="">
        </div>
        <div class="search-list">
        <span>手机号</span>
        <input type="number" name="mobile" ms-duplex="@search_data.mobile" placeholder="">
    </div>
        <!--
        <div class="search-list">
            <span>登录状态</span>
            <select ms-duplex="@search_data.login_state" name="is_effect">
                <option value="-1" {if $data.login_state eq -1}selected=selected{/if} >全部</option>
                <option value="1" {if $data.login_state eq 1}selected=selected{/if} >开启</option>
                <option value="0" {if $data.login_state eq 0}selected=selected{/if} >关闭</option>
            </select>
        </div>
        -->
        <div class="search-list">
        <span>会员ID</span>
        <input type="number" name="user_id" ms-duplex="@search_data.user_id" placeholder="">
        </div>
        <a href="javascript:void(0)" class="btn btn-primary btn-circle" ms-click="search">搜索</a>
    </div>
    <div class="ajax-block">
        <table class="uc-table">
            <thead>
                <tr>
                    <th>推广商ID</th>
                    <th>推广商名称</th>
                    <th>手机号</th>
                    <th>绑定会员ID</th>
                    <th>保证金/游戏币数</th>
                    <th>钻石数</th>
                    <th>发展会员/人</th>
                    <th>创建时间</th>
                    <th>状态</th>
                    <!--<th>操作</th>-->
                </tr>
            </thead>
            <tbody>
            {foreach from="$data.promoter_list" item="promoter"}
                <tr>
                    <td>{$promoter.id}</td>
                    <td>{$promoter.name}</td>
                    <td>{$promoter.mobile}</td>
                    <td>{$promoter.user_id}</td>
                    <td>{$promoter.coin}</td>
                    <td>{$promoter.diamonds}</td>
                    <td>{$promoter.child_count}<a href='{url r="user#promoter_userlist" p="promoter_name=$promoter.name" }' class="table-link">明细</a></td>
                    <td>{function name="to_date" v="$promoter.create_time"}</td>
                    <td>{if $promoter.is_effect eq 1}有效{else}无效{/if}</td>
                    <!--<td><a class="table-link" href="javascript:void(0)">查看详情</a></td>-->
                </tr>
            {foreachelse}
                <tr>
                    <td colspan="9">
                        <span>暂无数据</span>
                    </td>
                </tr>
            {/foreach}
            </tbody>
        </table>
        <div class="m-page clearfix">
            <div class="m-page-con">
                {$data.page}
            </div>
        </div>
    </div>
</div>
